import { useModel } from "qps";

export default  ()=>{
    const { loading, httpStart, httpOver }=useModel('page2.page1-model',(model)=>{
        return {
            loading:model.loading,
            httpStart:model.httpStart,
            httpOver:model.httpOver
        }
    });
    console.log("====>loading2")
    return (<div>
         <button onClick={httpStart}>
         httpStart
        </button>
        <button onClick={httpOver}>
        httpOver
        </button>
        {loading?'loading2...':''}
    </div>);
}